<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2023/12/7
 * Time: 17:12
 */

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Database\Eloquent\Collection;

class PackageDetailResource extends JsonResource
{
    public function toArray($request)
    {

        return [
            'package_id' => $this->id,
            'package_title' => $this->title,
            'package_pic' => $this->pic,
            'brand_id' => $this->brand_id,
            'brand_title' => $this->brand_title,
            'brand_pic' => $this->brand_pic,
            'category_id' => $this->category_id,
            'category_title' => $this->category_title,
            'cars' => $this->cars,
            'original_price' => $this->original_price,
            'price' => $this->price,
//            'agreement' => $this->agreement
        ];
    }
}